<?php 
$data['page_selected'] = 'management';
$this->load->view('constants/header', $data);?>

<div id="site_content">
	<?php $this->load->view('constants/sidebar'); ?> 
    <div id="content">
        <!-- insert the page content here -->
        <?php $this->load->view('management/menu'); ?>
        <br /><br /><br /><br />
  		<h3 align="center">Per&iacute;odos</h3>
        <a href="<?php echo base_url(); ?>management/new_period" title="Agregar per&iacute;odo">
        	<img src="<?php echo base_url().IMG; ?>add.png" width="100" height="100"/>
        </a>
        <h1>Editar per&iacute;odo</h1>
        <h2 style="font-size:10px"><img src="<?php echo base_url().IMG; ?>icon_RequiredField.png">&nbsp; Campos Obligatorios</h2>
        <form action="<?php echo (base_url().'management/edit_period/'.$period['id_periodo']); ?>" method="post" 
        																		onsubmit="return check_period_code('<?php echo $period['id_periodo'] ?>');">
            <table width="100%" align="center">
                <tr>
                    <td> <img src="<?php echo base_url().IMG; ?>icon_RequiredField.png">&nbsp;C&oacute;digo </td>
                    <td>
                    	<input type="text" name="periodCode" id="periodCode" value="<?php echo $period['cod_inst_edu_periodo']; ?>" />
                    </td>
                    <td> <?php echo form_error('periodCode'); ?> </td>
                </tr>
                <tr>
                    <td colspan="3" align="right">
                        <input type="submit" name="button" class="submit" value="Procesar" />
                    </td>
                </tr> 
            </table>
        </form>
        
        <div id="test">
    </div>
</div>
<?php $this->load->view('constants/footer'); ?>